<template>
  <div>
      <header>
        <span class="left" @click="goto('/msite')">456阅读</span>
        <span class="right iconfont icon-icon_search" @click="goto()"></span>
    </header>
    </div>
</template>

<script>
export default {
  methods: {
    goto (path) {
      this.$router.replace(path)
    }
  }
}
</script>
<style scoped>
/* 头部 */
header{
    position: fixed;
    width: 100%;
    height: 50px;
    background: #1296db;
    font-size: 18px;
    z-index: 1000;
}
.left{
    position: absolute;
    top: 22%;
    left: 5%;
    color: white
}
.right{
    position: absolute;
    font-size: 20px;
    top: 28%;
    right: 7%;
    color: white
}

</style>
